﻿//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.ComponentModel;
			using System.Drawing;
			using System;
			using System.Windows.Forms;
			
		#endregion
		
	public class frmBangMau : Form
	
	{
		
		#region Fields
			private Container components;
			public ListView listView1;
		#endregion
		
		#region Constructors
		
			public frmBangMau ()
			
			{
				this.components = ((System.ComponentModel.Container) null);
				this.InitializeComponent ();
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void CreateMyListView ()
			
			{
				ListViewItem theListViewItem;
				ListViewItem theListViewItem2;
				ListViewItem theListViewItem3;
				ListViewItem theListViewItem4;
				ListViewItem theListViewItem5;
				ListViewItem[] theListViewItemArray;
				this.listView1.Bounds = new Rectangle (new Point (5, 5), new System.Drawing.Size (200, 120));
				this.listView1.BorderStyle = BorderStyle.FixedSingle;
				this.listView1.View = View.Details;
				this.listView1.LabelEdit = true;
				this.listView1.HeaderStyle = ColumnHeaderStyle.Nonclickable;
				this.listView1.AllowColumnReorder = true;
				this.listView1.FullRowSelect = true;
				this.listView1.GridLines = true;
				this.listView1.BackColor = Color.Azure;
				this.listView1.Sorting = SortOrder.Ascending;
				this.listView1.MultiSelect = false;
				theListViewItem = new ListViewItem ("Cấp 1");
				theListViewItem.ForeColor = Color.Red;
				ListViewItem.ListViewSubItem theListViewSubItem = theListViewItem.SubItems.Add ("Trầm Trọng");
                theListViewItem2 = new ListViewItem("Cấp 2");
				theListViewItem2.ForeColor = Color.Blue;
				ListViewItem.ListViewSubItem theListViewSubItem2 = theListViewItem2.SubItems.Add ("Rất Nặng");
                theListViewItem3 = new ListViewItem("Cấp 3");
				theListViewItem3.ForeColor = Color.Purple;
				ListViewItem.ListViewSubItem theListViewSubItem3 = theListViewItem3.SubItems.Add ("Nặng");
                theListViewItem4 = new ListViewItem("Cấp 4");
				theListViewItem4.ForeColor = Color.Green;
				ListViewItem.ListViewSubItem theListViewSubItem4 = theListViewItem4.SubItems.Add ("Vừa");
                theListViewItem5 = new ListViewItem("Cấp 5");
				theListViewItem5.ForeColor = Color.Gray;
				ListViewItem.ListViewSubItem theListViewSubItem5 = theListViewItem5.SubItems.Add ("Nhỏ");
                ColumnHeader theColumnHeader = this.listView1.Columns.Add("Mức Độ", -2, HorizontalAlignment.Center);
                ColumnHeader theColumnHeader2 = this.listView1.Columns.Add(" Giải Thích ", -2, HorizontalAlignment.Center);
				theListViewItemArray = new ListViewItem[5];
				theListViewItemArray[0] = theListViewItem;
				theListViewItemArray[1] = theListViewItem2;
				theListViewItemArray[2] = theListViewItem3;
				theListViewItemArray[3] = theListViewItem4;
				theListViewItemArray[4] = theListViewItem5;
				this.listView1.Items.AddRange (theListViewItemArray);
				base.Controls.Add (((Control) this.listView1));
				return;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				if (! disposing)
				{
					goto L_0016;
				}
				if (this.components == null)
				{
					goto L_0016;
				}
				this.components.Dispose ();
				
			L_0016:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void frmTest_Load (object sender, EventArgs e)
			
			{
				this.CreateMyListView ();
				return;
			}
			
			private void InitializeComponent ()
			
			{
				this.listView1 = new ListView ();
				this.listView1.Name = "listView1";
				this.listView1.TabIndex = 0;
				this.listView1.DoubleClick += new EventHandler (this.listView1_DoubleClick);
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 16);
				this.BackColor = SystemColors.ActiveCaptionText;
				base.ClientSize = new System.Drawing.Size (210, 130);
				this.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.Name = "frmBangMau";
				base.StartPosition = FormStartPosition.CenterScreen;
                this.Text = "Bảng Màu Mức Độ";
				base.Load += new EventHandler (this.frmTest_Load);
				return;
			}
			
			private void listView1_DoubleClick (object sender, EventArgs e)
			
			{
				ListViewItem theListViewItem;
				Color theColor;
				if (this.listView1.SelectedItems.Count <= 0)
				{
					goto L_0043;
				}
				theListViewItem = this.listView1.SelectedItems[0];
				Class.mau = (theColor = theListViewItem.ForeColor).Name.ToString ();
				base.Close ();
				
			L_0043:
				return;
			}
			
			[System.STAThreadAttribute ()]
			private static void Main ()
			
			{
				Application.Run (((Form) new frmBangMau ()));
				return;
			}
			
		#endregion
	}
	
}

